package com.cxl.mapreduce._5inputformat;

import org.apache.hadoop.io.BytesWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

/**
 * @author joyson
 * @create 2019-06-15-下午5:21
 */
public class SequenceFileReducer extends Reducer<Text, BytesWritable, Text, BytesWritable> {
    @Override
    protected void reduce(Text key, Iterable<BytesWritable> values, Context context) throws IOException, InterruptedException {
//        super.reduce(key, values, context);
        for (BytesWritable value:values){
            context.write(key,value);
        }
    }
}
